﻿using System.Collections.Generic;
using System.ServiceModel;
using Sinacor.Infra.Common.Exceptions;
using Sinacor.Infra.Service.ExceptionHandling;
using Sinacor.Infra.Service.Security.Services;
using Sinacor.Infra.Common.Exceptions.FaultContracts;

namespace Sinacor.Servico.Bovespa.Alocacao.Service.ServiceContract
{
    /// <summary>
    /// Contrato de serviço para Negocio Pendente Alocacao
    /// </summary>
    [ExceptionShielding]
    [ServiceContract(Namespace = "http://www.bovespa.com.br/Sinacor.Servico.Bovespa.Alocacao.Service.ServiceContract", SessionMode = SessionMode.Allowed, Name = "INegocioPendenteAlocacao")]
	public interface INegocioPendenteAlocacao
    {
        #region Métodos

        /// <summary>
		/// Consulta lista de negócios pendentes de alocação conforme filtro de pesquisa
		/// </summary>
		/// <param name="request"></param>
        [OperationLog]
		[FaultContract(typeof(BusinessFault))]
		[FaultContract(typeof(ValidationFault))]
		[FaultContract(typeof(GeneralFault))]
		[FaultContract(typeof(InvalidSessionFault))]
		[FaultContract(typeof(LicensingFault))]
		[FaultContract(typeof(AccessIsDeniedFault))]
		[OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = false, AsyncPattern = false, Action = "ConsultarNegociosPendentesAlocacao")]
		List<DataContract.Response.NegocioPendenteAlocacaoResponse> ConsultarNegociosPendentesAlocacao(DataContract.Request.FiltroNegocioPendenteAlocacaoRequest request);

        #endregion
    }
}